package com.njrsrc.android.bean;

/**
 * 行业Bean，用于XML解析
 * 
 * @author Administrator
 * 
 */
public class IndustryInfo {
	private String code;
	private String name;
	private boolean isSelected;

	public IndustryInfo() {
	}

	public IndustryInfo(String name, String code) {
		this.name = name;
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof IndustryInfo) {
			return this.code.equals(((IndustryInfo) o).getCode());
		}
		return false;
	}
}